package com.codez.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.codez.domain.Menu;

import tk.mybatis.mapper.common.Mapper;

/**
 *  @author codez
 *	@createTime 2019-04-19 04:35:50
 */
public interface MenuMapper extends Mapper<Menu>{
	
	List<Menu> findAll();
	
	@Select("select * from menu where id = #{id}")
	Menu findById(Integer id);
	
	@Update("update  menu set pid = #{pid} , name=#{name} where id =#{id}")
	int update(Menu menu);

}
